Skip to content

Conversation

@cpsievert
Copy link
Collaborator

Follow up to #1736: fixes markup generation for user startup messages:

from shiny.express import ui

chat = ui.Chat(id="chat")

chat.ui(
    messages=[
        {"content": "Foo", "role": "assistant"},
        {"content": "Bar", "role": "user"},
        {"content": "Baz", "role": "assistant"},
    ]
)

Before

Screenshot 2024-10-15 at 4 08 11 PM

After

Screenshot 2024-10-15 at 4 07 43 PM

@cpsievert cpsievert merged commit f0cc575 into main Oct 15, 2024
41 checks passed
@cpsievert cpsievert deleted the chat-starting-messages-fix branch October 15, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant